package com.zxy.hotel.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author jiusi
 * @since 2021-12-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_vip")
public class Vip extends Model<Vip> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @TableField("name")
    private String name;

    @TableField("cardid")
    private String cardid;

    @TableField("phone")
    private String phone;

    @TableField("level")
    private String level;

    @TableField("discount")
    private Integer discount;

    @TableField("points")
    private Integer points;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
